:: update.inc.bat
:: Step2 - Clean up hash file and do update

echo Checking for update...
utility\php\php.exe -r ""
IF %ERRORLEVEL% EQU 254 GOTO Pass

:Fail
 cscript inc\warning.vbs "Need Redistributable for Visual Studio 2008 SP1!"
 cscript inc\openurl.vbs "http://www.microsoft.com/zh-cn/download/details.aspx?id=5582"
 exit

:Pass
 utility\php\php.exe cleanhash.php
 utility\php\php.exe updategc.php
 utility\sleep.exe -m 1000
